// @ts-ignore
import {request} from 'umi';
import type {OperationLogListItem, OperationLogListParams} from './data.d';

/**
 * 查询操作日志
 * @param params
 */
export async function queryOperationLogList(params: OperationLogListParams) {
  return request<OperationLogListItem>('/api/tpl/operationLog/queryOperationLogList', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}

/**
 * 删除操作日志
 * @param ids
 */
export async function removeOperationLog(ids: number[]) {
  return request('/api/tpl/operationLog/deleteOperationLog', {
    method: 'DELETE',
    data: {
      ids: ids
    },
  });
}

